<include file="Public:header" />
<include file="Public:leftside" />
<script src="/Store/js/jQuery v1.8.2.js"></script>
<link rel="stylesheet" type="text/css" href="/Store/css/transport/transport.css" />
<div class="main-content" id="mainContent">
	<div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs">
		<ul class="breadcrumb">
			<li> <i class="icon-home home-icon"></i>
				<a href="/">首页</a>
			</li>
			<li>
				<a href="{:U('Shop/transport')}">运费模板</a>
			</li>
			<li>
				<a href="javascript:;">添加模板</a>
			</li>

		</ul>
	</div>
	<div class="tabmenu">
		<ul class="tab pngFix">
			<li class="active">
				<a href="{:U('Shop/transport')}">运费模板</a>
			</li>
		</ul>
	</div>
	<div class="ncsc-form-default">
		<form method="post" id="tpl_form" name="tpl_form" action="{:U('shop/transportsave')}">
			<input type="hidden" name="transport_id" value="">
			<input type="hidden" name="form_submit" value="ok">
			<input type="hidden" name="type" value="">
			<dl>
				<dt>
			        <label for="J_TemplateTitle" class="label-like">模板名称：</label>
			    </dt>
				<dd>
					<input type="text" class="text" id="title" autocomplete="off" value="" name="title">
					<p class="J_Message" style="display:none" error_type="title"><i class="icon-exclamation-sign"></i>必须填写模板名称</p>
				</dd>
			</dl>
			<dl>
				<dt>运送方式：</dt>
				<dd>除指定地区外，其余地区的运费采用"默认运费"
					<p></p>
				</dd>
			</dl>

			<!-----------------------POST begin--------------------------------------->
			<dl>
				<dt></dt>
				<dd class="trans-line">

				</dd>
			</dl>
			<div class="bottom">
				<label class="submit-border"><input type="submit" id="submit_tpl" class="submit" value="保存"></label>
			</div>
		</form>
		<div class="ks-ext-mask" style="position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 999; display:none"></div>
		<div id="dialog_areas" class="dialog-areas" style="display:none">
			<div class="ks-contentbox">
				<div class="title">选择区域
					<a class="ks-ext-close" href="javascript:void(0)">X</a>
				</div>
				<form method="post">
					<ul id="J_CityList">
						<foreach name="area" item="v">
							<li>
								<dl class="ncsc-region">
									<dt class="ncsc-region-title"> <span>
								      <input type="checkbox" id="J_Group_{$v.area_id}" class="J_Group" value="">
								      <label for="J_Group_{$v.area_id}">{$v.area_name}</label>
								      </span> 
									</dt>
									<php>$province=getProvinceList($v['area_id']);</php>
									<dd class="ncsc-province-list">
										<foreach name="province" item="vo">
											<div class="ncsc-province">
												<span class="ncsc-province-tab">
			        							<input type="checkbox" class="J_Province" id="J_Province_{$vo.province_id}" value="{$vo.province_id}">
			      								  <label for="J_Province_{$vo.province_id}">{$vo.province_name}</label>
			       									 <span class="check_num"></span>
			       									 <i class="icon-angle-down trigger"></i>
															<div class="ncsc-citys-sub"> 
																<php>$City=getCityList($vo['province_id']);</php>
																<foreach name="City" item="voo">
																<span class="areas">
														          <input type="checkbox" class="J_City" id="J_City_{$voo.city_id}" value="{$voo.city_id}">
														          <label for="J_City_{$voo.city_id}">{$voo.city_name}</label>
														        </span> 
														        </foreach>
																<p class="tr hr8">
																	<a href="javascript:void(0);" class="ncsc-btn-mini ncsc-btn-orange close_button">关闭</a>
																</p>
															</div>
													</span>
											</div>
										</foreach>
									</dd>
								</dl>
							</li>
						</foreach>
					</ul>
					<div class="bottom">
						<a href="javascript:void(0);" class="J_Submit ncsc-btn ncsc-btn-green">确定</a>
						<a href="javascript:void(0);" class="J_Cancel ncsc-btn">取消</a>
					</div>
				</form>
			</div>
		</div>
		<div id="dialog_batch" class="dialog-batch" style="z-index: 9999; display:none">
			<div class="ks-contentbox">
				<div class="title">批量操作
					<a class="ks-ext-close" href="javascript:void(0)">X</a>
				</div>
				<form method="post">
					<div class="batch">默认运费： <input class="w30 mr5 text" type="text" maxlength="4" autocomplete="off" data-field="start" value="1" name="express_start"> 件内， <input class="w60 text" type="text" maxlength="6" autocomplete="off" value="0.00" name="express_postage" data-field="postage"><em class="add-on"> <i class="icon-renminbi"></i> </em>，每增加 <input class="w30 mr5 text" type="text" maxlength="4" autocomplete="off" value="1" data-field="plus" name="express_plus"> 件，增加运费 <input class="w60 text" type="text" maxlength="6" autocomplete="off" value="0.00" data-field="postageplus" name="express_postageplus"><em class="add-on"> <i class="icon-renminbi"></i> </em></div>
					<div class="J_DefaultMessage"></div>
					<div class="bottom">
						<a href="javascript:void(0);" class="J_SubmitPL ncsc-btn ncsc-btn-green">确定</a>
						<a href="javascript:void(0);" class="J_Cancel ncsc-btn">取消</a>
					</div>
				</form>
			</div>
		</div>

	</div>
	<script type="text/javascript">
		var SITEURL = 'http://' + window.location.host;
	</script>
	<script src="/Store/js/transport/dialog/dialog.js" id="dialog_js"></script>
	<script src="/Store/js/transport/transport.js"></script>
	<script>
		$(function() {
			$('.trans-line').append(TransTpl.replace(/TRANSTYPE/g, 'kd'));
			$('.tbl-except').append(RuleHead);
		});
	</script>
</div>
<div id="append_parent"></div>

<include file="Public:footer" />